#ifndef rectangle_h
#define rectangle_h

#include "shape.h"

class rect : public shape
{
	friend ostream& operator<<(ostream &output,rect r);

protected:

		int m_width;
		int m_hight;

public:

		rect(){m_width = m_hight = 0;}
		rect(const point &upper_left,int w, int h);
		int GetWidth() const{return m_width;}
		void SetWidth(int w){m_width = w;}
		int GetHight() const{return m_hight;}
		void SetHight(int h){m_hight = h;}
		void Draw(HWND hwnd,int xt, int yt);
		void Draw(HWND hwnd);
		void Hide(HWND hwnd);
		int GetClassID(){return 1;}

		bool operator==(const rect &right)const;
		const rect &operator=(const rect &right);
};

#endif